#include "Task.hh"
#include "StressTask.hh"

Task* Task::generate(TaskType Type)
{
	Task* Return;
	switch (Type)
	{
		case StressTaskType:
			Return = new StressTask;
			break;
		
		default:
			notifyError(Type, "Unknow type.");
			Return = NULL;
	}
	
	checkNullWOR(Return, "Return is NULL.");
	return Return;
}
